package com.dmbjz.ssmdemo.controller;


import com.dmbjz.ssmdemo.entity.UserPo;
import com.dmbjz.ssmdemo.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Resource
    private UserMapper userMapper;

    @RequestMapping("getUserList")
    public List<UserPo> getUserList() {

        return userMapper.getUserList();

    }

}
